<?php

namespace Cloud\Traits;

use Swoole\Table;
use Swoole\Coroutine\Http\Client;

trait AckTraits
{
    protected $table;

    public function createTable()
    {
        $this->table = new Table(1024);

        $this->table->column('ack', Table::TYPE_INT, 2);
        $this->table->column('num', Table::TYPE_INT, 2);

        $this->table->create();
    }

    public function confirmGo(Client $client, string $uniqueId, array $data)
    {
        go(function() use ($client, $uniqueId, $data) {

        });
    }
}